<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Ocr\V20181119\Models;
use TencentCloud\Common\AbstractModel;

/**
 * GetCardVerificationExternalResult response structure.
 *
 * @method string getStatus() Obtain Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
 * @method void setStatus(string $Status) Set Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
 * @method array getWarnInfo() Obtain Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setWarnInfo(array $WarnInfo) Set Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getNationality() Obtain Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setNationality(string $Nationality) Set Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method GeneralCard getCardInfo() Obtain Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setCardInfo(GeneralCard $CardInfo) Set Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getCardVerificationToken() Obtain Specifies the token in the request parameters.
 * @method void setCardVerificationToken(string $CardVerificationToken) Set Specifies the token in the request parameters.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class GetCardVerificationExternalResultResponse extends AbstractModel
{
    /**
     * @var string Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
     */
    public $Status;

    /**
     * @var array Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $WarnInfo;

    /**
     * @var string Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Nationality;

    /**
     * @var GeneralCard Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $CardInfo;

    /**
     * @var string Specifies the token in the request parameters.
     */
    public $CardVerificationToken;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param string $Status Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
     * @param array $WarnInfo Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Nationality Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param GeneralCard $CardInfo Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $CardVerificationToken Specifies the token in the request parameters.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("Status",$param) and $param["Status"] !== null) {
            $this->Status = $param["Status"];
        }

        if (array_key_exists("WarnInfo",$param) and $param["WarnInfo"] !== null) {
            $this->WarnInfo = $param["WarnInfo"];
        }

        if (array_key_exists("Nationality",$param) and $param["Nationality"] !== null) {
            $this->Nationality = $param["Nationality"];
        }

        if (array_key_exists("CardInfo",$param) and $param["CardInfo"] !== null) {
            $this->CardInfo = new GeneralCard();
            $this->CardInfo->deserialize($param["CardInfo"]);
        }

        if (array_key_exists("CardVerificationToken",$param) and $param["CardVerificationToken"] !== null) {
            $this->CardVerificationToken = $param["CardVerificationToken"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
